package com.example.mobiledatapackage.request;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
@Schema(title = "请求序列化 RDF 数据的请求")
public class SaveModelReq {

    @Schema(description = "序列化后文件的存储位置", required = true)
    private String path;

    @Schema(description = "序列化 RDF 的格式", required = true)
    @Pattern(
            regexp = "turtle|xml|ttl|nt",
            flags = {Pattern.Flag.CASE_INSENSITIVE},
            message = "格式错误"
    )
    private String format;
}
